const path = require('path')

module.exports = {
    title: '开发指南',
    description: '开发指南',
    head: [
        ['link', {rel: 'icon', href: '/logo.png'}],
        ['link', {rel: 'stylesheet', href: '/styles/index.css'}]
    ],
    markdown: {
        lineNumbers: true
    },
    serviceWorker: true,
    themeConfig: {
        logo: '/logo.png',
        lastUpdated: '更新时间',
        nav: [
            {text: '首页', link: '/'},
            {text: '文档', link: '/pages/folder/new/briefly.md'},
            // {text: 'GitHub', link: 'https://github.com/your-repo'}
        ],
        sidebar: {
            '/pages/folder/': [
                {
                    title: '萌新必读',
                    collapsable: true,
                    sidebarDepth: 3,
                    children: [
                        ['/pages/folder/new/briefly.md', '简介'],
                        ['/pages/folder/new/callUs.md', '交流群'],
                        ['/pages/folder/new/functionList.md', '功能列表'],
                        ['/pages/folder/new/startBack.md', '快速启动（后端项目）'],
                        ['/pages/folder/new/startPro.md', '快速启动（前端项目）'],
                        ['/pages/folder/new/interfaceDoc.md', '接口文档'],
                        ['/pages/folder/new/technologySelection.md', '技术选型'],
                        ['/pages/folder/new/projectStructure.md', '项目结构'],
                        ['/pages/folder/new/codeLoad.md', '代码热加载'],
                        ['/pages/folder/new/quickRepackage.md', '一键改包'],
                        ['/pages/folder/new/migrationModule.md', '迁移模块（适合新项目）'],
                        ['/pages/folder/new/deleteFeatures.md', '删除功能（以租户为例）'],
                        ['/pages/folder/new/structuralChanges.md', '表结构变更（版本升级）'],
                        ['/pages/folder/new/intranetPenetration.md', '内网穿透']
                    ]
                },
                {
                    title: '后端手册',
                    collapsable: true,
                    sidebarDepth: 3,
                    children: [
                        ['/pages/folder/background/createService.md', '新建服务'],
                        ['/pages/folder/background/codeGenerationAlone.md', '代码生成【单表】（新增功能）'],
                        ['/pages/folder/background/codeGeneration.md', '代码生成【主子表】'],
                        ['/pages/folder/background/codeGenerationTree.md', '代码生成（树表）'],
                        ['/pages/folder/background/featurePermissions.md', '功能权限'],
                        ['/pages/folder/background/dataPermissions.md', '数据权限'],
                        ['/pages/folder/background/userSystem.md', '用户体系'],
                        ['/pages/folder/background/otherLogin.md', '三方登录'],
                        ['/pages/folder/background/singleLogin.md', 'OAuth 2.0(SSO单点登录)'],
                        ['/pages/folder/background/SaaS1.md', 'SaaS 多租户【字段隔离】'],
                        ['/pages/folder/background/WebSocket.md', 'WebSocket 实时通信'],
                        ['/pages/folder/background/exceptionHandling.md', '异常处理（错误码）'],
                        ['/pages/folder/background/parameter.md', '参数校验、时间传参'],
                        ['/pages/folder/background/PageImpl.md', '分页实现'],
                        ['/pages/folder/background/VO.md', 'VO 对象转换、数据翻译'],
                        ['/pages/folder/background/fileStorage.md', '文件存储（上传下载）'],
                        ['/pages/folder/background/excel.md', 'Excel导入导出'],
                        ['/pages/folder/background/logs.md', '操作日志、访问日志、异常日志'],
                        ['/pages/folder/background/MyBatis1.md', 'MyBatis 数据库'],
                        ['/pages/folder/background/MyBatis2.md', 'MyBatis 联表&分页查询'],
                        ['/pages/folder/background/sql1.md', '多数据源（读写分离）、事务'],
                        ['/pages/folder/background/redis.md', 'Redis 缓存'],
                        ['/pages/folder/background/localRedis.md', '本地 缓存'],
                        ['/pages/folder/background/asynchronousTasks.md', '异步任务'],
                        ['/pages/folder/background/distributedLocks.md', '分布式锁'],
                        ['/pages/folder/background/idempotency.md', '幂等性（防重复提交）'],
                        ['/pages/folder/background/rateLimiter.md', '请求限流（RateLimiter）'],
                        ['/pages/folder/background/interfaceSignature.md', 'HTTP 接口签名（防篡改）'],
                        ['/pages/folder/background/unitTests.md', '单元测试'],
                        ['/pages/folder/background/captcha.md', '验证码'],
                        ['/pages/folder/background/toolUtil.md', '工具类 Util '],
                        ['/pages/folder/background/sqlDoc.md', '数据库文档']
                    ]
                },
                {
                    title: '微服务手册',
                    collapsable: true,
                    sidebarDepth: 3,
                    children: [
                        ['/pages/folder/cloud/deBug.md', '微服务调试'],
                        ['/pages/folder/cloud/nacos.md', '注册中心 Nacos'],
                        ['/pages/folder/cloud/nacos1.md', '配置中心 Nacos'],
                        ['/pages/folder/cloud/gateway.md', '服务网关 Spring Cloud Gateway'],
                        ['/pages/folder/cloud/feign.md', '服务调用 Feign'],
                        ['/pages/folder/cloud/XXL.md', '定时任务 XXL job'],
                        ['/pages/folder/cloud/MQ.md', '消息队列（内存）'],
                        ['/pages/folder/cloud/redis.md', '消息队列（Redis）'],
                        ['/pages/folder/cloud/rocketMQ.md', '消息队列（RocketMQ）'],
                        ['/pages/folder/cloud/rabbitMQ.md', '消息队列（RabbitMQ）'],
                        ['/pages/folder/cloud/Kafka.md', '消息队列（Kafka）'],
                        ['/pages/folder/cloud/cloud.md', '消息队列（Cloud）'],
                        ['/pages/folder/cloud/seata.md', '分布式事务 Seata'],
                        ['/pages/folder/cloud/sentinel.md', '服务保障 Sentinel']
                    ]
                },
                {
                    title: '资产管理手册',
                    collapsable: true,
                    sidebarDepth: 3,
                    children: [
                        ['/pages/folder/asset/demo.md', '资产管理演示'],
                        ['/pages/folder/asset/open.md', '功能开启'],
                        ['/pages/folder/asset/building.md', '【建筑】资产信息、楼宇、房间'],
                        ['/pages/folder/asset/tenants.md', '【租客】租客管理、租客员工'],
                        ['/pages/folder/asset/investment.md', '【招商】招商信息、线索'],
                        ['/pages/folder/asset/contract.md', '【合同】合同信息、模板'],
                        ['/pages/folder/asset/finance.md', '【财务】租客账单、收支流水'],
                        ['/pages/folder/asset/property.md', '【物业】工单维修、水电抄表']
                    ]
                },
                {
                    title: 'ERP手册',
                    collapsable: true,
                    sidebarDepth: 3,
                    children: [
                        ['/pages/folder/erp/demo.md', 'ERP演示'],
                        ['/pages/folder/erp/open.md', '功能开启'],
                        ['/pages/folder/erp/products.md', '【产品】产品信息、分类、单位'],
                        ['/pages/folder/erp/inventory.md', '【库存】产品库存、库存明细'],
                        ['/pages/folder/erp/other.md', '【库存】其它入库、其它出库'],
                        ['/pages/folder/erp/stock.md', '【库存】库存调拨、库存盘点'],
                        ['/pages/folder/erp/purchase.md', '【采购】采购订单、入库、退货'],
                        ['/pages/folder/erp/sale.md', '【销售】销售订单、出库、退货'],
                        ['/pages/folder/erp/finance.md', '【财务】采购付款、销售收款']
                    ]
                }
            ]
        }
    },
    layouts: {
        Layout: path.resolve(__dirname, './components/Layout.vue')
    },
    clientConfigFile: './client.js'
}
